package com.google.gwt.sample.dynatablerf.server;

import java.util.List;

import com.google.gwt.sample.dynatablerf.server.business.ControladorFactory;
import com.google.gwt.sample.dynatablerf.server.domain.Projeto;

public class ProjetoService {

	public List<Projeto> findAll(int startIndex, int maxResult) {
		return ControladorFactory.getControladorProjeto().findAll(startIndex,
				maxResult);
	}

	public Long countAll() {
		return ControladorFactory.getControladorProjeto().countAll();
	}

	public List<Projeto> findAll(String suggestion, int maxResult) {
		return ControladorFactory.getControladorProjeto().findSuggestions(suggestion,
				maxResult);
	}
}
